// 求差集
export function getDifferenceSet(a, relationship, b) {
  const differenceSet = [];

  if (relationship === '>') {
    for (const item of a) {
      if (!b.includes(item)) {
        differenceSet.push(item);
      }
    }
  } else if (relationship === '<') {
    for (const item of b) {
      if (!a.includes(item)) {
        differenceSet.push(item);
      }
    }
  }

  return differenceSet;
}
